package com.lwlk.zdk.mapper.T;

import com.lwlk.zdk.model.T.TDisEnterprise;
import com.lwlk.zdk.model.T.TDisEnterpriseExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TDisEnterpriseMapper {
    int countByExample(TDisEnterpriseExample example);

    int deleteByExample(TDisEnterpriseExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TDisEnterprise record);

    int insertSelective(TDisEnterprise record);

    List<TDisEnterprise> selectByExample(TDisEnterpriseExample example);

    TDisEnterprise selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TDisEnterprise record, @Param("example") TDisEnterpriseExample example);

    int updateByExample(@Param("record") TDisEnterprise record, @Param("example") TDisEnterpriseExample example);

    int updateByPrimaryKeySelective(TDisEnterprise record);

    int updateByPrimaryKey(TDisEnterprise record);

    List<Map<String, Object>> selectAll(@Param("enterpriseName")String enterpriseName);

    List<Map<String, Object>> selectDetails(@Param("enterpriseId") Integer enterpriseId);

    String selectByEid(@Param("eId") Integer eId);

    List<Map<String, Object>> selectByEidList(@Param("eId")Integer eId);

    Integer selectMaxEnterpriseId();

    int selectManyVehicleNumber(@Param("enterpriseName") String enterpriseName);

    int logicallyDeleteBatch(@Param("id") Integer id);

    List<Map<String, Object>> selectEnterpriseName(@Param("enterpriseName") String enterpriseName,@Param("regionCode") Integer regionCode);

    String selectDimEnterpriseName(String enterpriseName);

    int selectEnterpriseCount(@Param("regionCode")Integer regionCode);

    int selectRegularEnterprise(@Param("regionCode") Integer regionCode);

    int selectCharteredEnterprise(@Param("regionCode") Integer regionCode);

    List<Map> selectEnterpriseNameList(@Param("eName") String eName);


    List<Map<String, Object>> selectEnterpriseMessage(@Param("vehicleNumber") String vehicleNumber);

    String selectAccessCode(@Param("s") int s);

    List<Map> selectEnterpriseId(@Param("regionCode") Integer regionCode);

    String selectBusiness(@Param("enterpriseId") Integer enterpriseId);

    List<Map<String, Object>> searchEnterprise(@Param("platformId")Integer platformId);

    List<Map<String, Object>> selectEnterpriseIdAndName(@Param("areaCode") Integer areaCode,@Param("enterpriseName")String enterpriseName);

    List<Map<String, Object>> selectVehicleNet(@Param("oid") Integer oid, @Param("netStatus") Integer netStatus, @Param("startTime") String startTime,
                                               @Param("endTime") String endTime, @Param("eId") Integer eId, @Param("pId") Integer pId, @Param("vNumber") String vNumber,@Param("page")Integer page,@Param("size") Integer size);

    List<Map<String, Object>> selectEnterpriseList(@Param("regionCode") Integer regionCode);

    int selectDangerousGoodsEnterprise(@Param("regionCode") Integer regionCode);

    List<Map<String, Object>> selectVehicleNetAll(@Param("oid") Integer oid, @Param("netStatus") Integer netStatus, @Param("startTime") String startTime,
                                                  @Param("endTime") String endTime, @Param("eId") Integer eId, @Param("pId") Integer pId, @Param("vNumber") String vNumber,@Param("page")Integer page,@Param("size") Integer size);
}